<template>
  <div class="page result">
    <div class="scroll-view">
      <customHeader
        :middleTitle="headerTitle"
        @leftCallBack="goBack"
      />
      <div class="page-body">
        <result
          type="success"
          title="门店绑定成功"
          msg=""
        />
        <div class="btn-wrap">
          <div
            class="btn"
            @click="linkTo"
          >去设置</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import customHeader from "../../components/header/header";
import result from "../../components/result/result";
import jsBridge from "../../tools/jsBridge.js";
export default {
  name: "bindingSuccess",
  data() {
    return {
    };
  },
  methods: {
    goBack() {
      //this.$router.push({ path: "/" });
       jsBridge.closeWindow();
    },
    linkTo() {
      this.$router.push({
        path: "/qrCodeSound/mainSettings",
        query: { sn: this.sn, type: this.type,shopId:this.shopId }
      });
    }
  },
  computed: {
    headerTitle() {
      return window.CommonUtil.getMachineNameByType(this.type);
    }
  },
  created() {
    this.sn = this.$route.query.sn;
    this.type = this.$route.query.type;
    this.shopId = this.$route.query.shopId;
  },
  components: {
    customHeader,
    result
  }
};
</script>

